package com.itheima.mapper.smsMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.db.sms.SmsFlashPromotionSession;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface SmsFlashPromotionSessionMapper extends BaseMapper<SmsFlashPromotionSession> {
    //查询所有场次
    @Select("select * from sms_flash_promotion_session")
    List<SmsFlashPromotionSession> selectAll();
    @Update("update sms_flash_promotion_session set  status=#{status} where id=#{id}")
    void updateStatus(Long id, Long status);
}
